package mypackage.forfun;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ViewFlipper;

public class flipActivity extends Activity {
	ViewFlipper flipper;

	@Override
	public void onCreate(Bundle icicle) {
		super.onCreate(icicle);
		setContentView(R.layout.flipper);
		flipper = (ViewFlipper) findViewById(R.id.details);
		Button btn = (Button) findViewById(R.id.flip_me);
		btn.setOnClickListener(new View.OnClickListener() {
			public void onClick(View view) {
				flipper.showNext();
			}
		});
	}
}